package classfile

/*
	表示类或接口的符号引用

	jvm规范的规定如下
	CONSTANT_Class_info {
	    u1 tag;
	    u2 name_index;
	}
*/
type ConstantClassInfo struct {
	cp        ConstantPool
	nameIndex uint16
}

func (self *ConstantClassInfo) readInfo(reader *ClassReader) {
	self.nameIndex = reader.readUint16()
}
func (self *ConstantClassInfo) Name() string {
	return self.cp.getUtf8(self.nameIndex)
}
